// 双向绑定hooks
import { computed } from "vue";
export const useVModelHook = (props, emit, name = "update:modelValue", propName = 'modelValue') => {
	return computed({
		get() {
			return props[propName];
		},
		set(val) {
			emit(name, val);
		},
	});
};